package com.xiangqian.controller;

import com.xiangqian.entity.Order;
import com.xiangqian.service.OrderService;

/**
 * 负责接受订单请求
 * */
public class OrderController {

    private OrderService orderService;

    /**
     * 创建订单
     */
    OrderController(OrderService orderService) {
        this.orderService = orderService;
    }

    /**
     * 查询订单
     */
    public void createOrder() {
        orderService.createOrder(new Order());
    }

    public void getOrderById() {
        orderService.getOrderById();
    }
}
